package com.xudu.exception;

//这个枚举类中定义的都是跟业务有关的异常
public enum AppExceptionCodeMsg {

    INVALID_PASSWORD(10000, "密码无效"),
    USERNAME_NOT_EXISTS(10001, "用户名不存在"),

    TOKEN_EXPIRATION(1002,"token过期");

    private int code;
    private String message;

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }


    AppExceptionCodeMsg(int code, String message) {
        this.code = code;
        this.message = message;
    }

}